<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>在线OJ-题目列表</title>
	<!-- <style>
        /* 起手式, 100%保证我们的样式设置可以不受默认影响 */
        * {
            /* 消除网页的默认外边距 */
            margin: 0px;
            /* 消除网页的默认内边距 */
            padding: 0px;
        }

        html,
        body {
            width: 100%;
            height: 100%;
        }

        .container .navbar {
            width: 100%;
            height: 50px;
            background-color: black;
            /* 给父级标签设置overflow，取消后续float带来的影响 */
            overflow: hidden;
        }

        .container .navbar a {
            /* 设置a标签是行内块元素，允许你设置宽度 */
            display: inline-block;
            /* 设置a标签的宽度,a标签默认行内元素，无法设置宽度 */
            width: 80px;
            /* 设置字体颜色 */
            color: white;
            /* 设置字体的大小 */
            font-size: large;
            /* 设置文字的高度和导航栏一样的高度 */
            line-height: 50px;
            /* 去掉a标签的下划线 */
            text-decoration: none;
            /* 设置a标签中的文字居中 */
            text-align: center;
        }

        /* 设置鼠标事件 */
        .container .navbar a:hover {
            background-color: green;
        }

        .container .navbar .login {
            float: right;
        }

        .container .question_list {
            padding-top: 50px;
            width: 800px;
            height: 100%;
            margin: 0px auto;
            /* background-color: #ccc; */
            text-align: center;
        }

        .container .question_list table {
            width: 100%;
            font-size: large;
            font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
            margin-top: 50px;
            background-color: rgb(243, 248, 246);
        }

        .container .question_list h1 {
            color: green;
        }
        .container .question_list table .item {
            width: 100px;
            height: 40px;
            font-size: large;
            font-family:'Times New Roman', Times, serif;
        }
        .container .question_list table .item a {
            text-decoration: none;
            color: black;
        }
        .container .question_list table .item a:hover {
            color: blue;
            text-decoration:underline;
        }
        .container .footer {
            width: 100%;
            height: 50px;
            text-align: center;
            line-height: 50px;
            color: #ccc;
            margin-top: 15px;
        }
    </style> -->

	<style>
		* {
			margin: 0;
			padding: 0;
			box-sizing: border-box;
			font-family: 'Segoe UI', system-ui, sans-serif;
		}
	
		:root {
			--primary-color: #2c3e50;
			--secondary-color: #3498db;
			--accent-color: #e74c3c;
			--light-bg: #f8f9fa;
			--text-dark: #2c3e50;
			--text-light: #ecf0f1;
			--easy-color: #2ecc71;
			--medium-color: #f1c40f;
			--hard-color: #e74c3c;
		}
	
		html {
			scroll-behavior: smooth;
		}
	
		body {
			background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
			min-height: 100vh;
		}
	
		.container .navbar {
			background: var(--primary-color);
			height: 60px;
			padding: 0 20px;
			position: fixed;
			width: 100%;
			top: 0;
			z-index: 1000;
			box-shadow: 0 2px 10px rgba(0,0,0,0.1);
		}
	
		.navbar::after {
			content: '';
			display: table;
			clear: both;
		}
	
		.container .navbar a {
			color: var(--text-light);
			text-decoration: none;
			padding: 0 20px;
			line-height: 60px;
			transition: all 0.3s ease;
			position: relative;
			font-weight: 500;
		}
	
		.container .navbar a:hover {
			background: var(--secondary-color);
			color: white;
		}
	
		.container .navbar a::after {
			content: '';
			position: absolute;
			bottom: 0;
			left: 50%;
			width: 0;
			height: 3px;
			background: var(--secondary-color);
			transition: all 0.3s ease;
		}
	
		.container .navbar a:hover::after {
			width: 100%;
			left: 0;
		}
	
		.container .navbar .login {
			float: right;
			background: var(--secondary-color);
			padding: 0 25px;
		}
	
		.container .question_list {
			max-width: 1200px;
			margin: 0 auto;
			padding: 120px 20px 100px;
		}
	
		.question_list h1 {
			text-align: center;
			font-size: 2.5rem;
			color: var(--primary-color);
			margin-bottom: 2rem;
			text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
			animation: fadeInUp 1s ease;
		}
	
		.question_list table {
			width: 100%;
			border-collapse: collapse;
			background: white;
			box-shadow: 0 1px 15px rgba(0,0,0,0.1);
			border-radius: 10px;
			overflow: hidden;
		}
	
		.question_list th,
		.question_list td {
			padding: 1.2rem;
			text-align: left;
		}
	
		.question_list th {
			background: var(--primary-color);
			color: white;
			font-weight: 600;
			text-transform: uppercase;
			letter-spacing: 0.8px;
		}
	
		.question_list tr {
			transition: all 0.2s ease;
		}
	
		.question_list tr:not(:last-child) {
			border-bottom: 1px solid #eee;
		}
	
		.question_list tr:hover {
			background: var(--light-bg);
			transform: translateX(5px);
		}
	
		.question_list td a {
			color: var(--text-dark);
			text-decoration: none;
			font-weight: 500;
			transition: all 0.2s ease;
		}
	
		.question_list td a:hover {
			color: var(--secondary-color);
			text-decoration: underline;
		}
	
		.difficulty {
			display: inline-block;
			padding: 0.3rem 1rem;
			border-radius: 20px;
			font-size: 0.9rem;
			font-weight: 500;
		}
	
		.difficulty.easy { background: var(--easy-color); color: white; }
		.difficulty.medium { background: var(--medium-color); color: white; }
		.difficulty.hard { background: var(--hard-color); color: white; }
	
		.container .footer {
			background: var(--primary-color);
			color: var(--text-light);
			padding: 1.5rem;
			text-align: center;
			position: fixed;
			bottom: 0;
			width: 100%;
			box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
		}
	
		@media (max-width: 768px) {
			.container .navbar a:not(.login) {
				display: none;
			}
	
			.question_list {
				padding: 100px 15px 80px;
			}
	
			.question_list th,
			.question_list td {
				padding: 0.8rem;
				font-size: 0.9rem;
			}
	
			.question_list h1 {
				font-size: 2rem;
			}
		}
	
		@keyframes fadeInUp {
			from {
				opacity: 0;
				transform: translateY(20px);
			}
			to {
				opacity: 1;
				transform: translateY(0);
			}
		}
	</style>
</head>
<body>
	<div class="container">
        <!-- 导航栏， 功能不实现-->
        <div class="navbar">
            <a href="/">首页</a>
            <a href="/all_questions">题库</a>
        </div>
        <div class="question_list">
            <h1>OnlineJuge题目列表</h1>
            <table>
                <tr>
                    <th class="item">编号</th>
                    <th class="item">标题</th>
                    <th class="item">难度</th>
                </tr>
                {{#question_list}}
                <tr>
                    <td class="item">{{number}}</td>
                    <td class="item"><a href="/question/{{number}}">{{title}}</a></td>
                    <td class="item">{{star}}</td>
                </tr>
                {{/question_list}}
            </table>
        </div>
		<div class="footer">
            <!-- <hr> -->
            <h4>小短腿</h4>
        </div>
    </div>
</body>
</html>